<include target="header.html" />

<!--@if($order_type == 'desc')-->
{@ $order_type = 'asc' }
<!--@else-->
{@ $order_type = 'desc' }
<!--@endif-->

<h4 class="xeAdmin">{$lang->antiaccess_followhost_list}</h4>
<table cellspacing="0" id="follow_host" class="rowTable" summary="{$lang->antiaccess_followhost_list_summary}">
<caption>{$lang->antiaccess_caption} : Total {number_format($page_navigation->total_count)}, Page {number_format($page_navigation->cur_page)}/{number_format($page_navigation->total_page)}</caption>
    <thead>
        <tr>
            <th scope="col"><div>{$lang->no}</div></th>
            <th scope="col"><div><a href="{getUrl('sort_index','host','order_type',$order_type)}" title="{$lang->antiaccess_host}">{$lang->antiaccess_host}</div></th>
            <th scope="col"><div><a href="{getUrl('sort_index','state','order_type',$order_type)}" title="{$lang->antiaccess_followhost_state}">{$lang->antiaccess_followhost_state}</div></th>
            <th scope="col"><div><a href="{getUrl('sort_index','my_level','order_type',$order_type)}" title="{$lang->antiaccess_followhost_my_level}">{nl2br($lang->antiaccess_followhost_my_level)}</div></th>
            <th scope="col"><div><a href="{getUrl('sort_index','follow_level','order_type',$order_type)}" title="{$lang->antiaccess_followhost_follow_level}">{nl2br($lang->antiaccess_followhost_follow_level)}</div></th>
            <th scope="col"><div><a href="{getUrl('sort_index','last_update','order_type',$order_type)}" title="{$lang->antiaccess_last_update}">{$lang->antiaccess_last_update}</a></div></th>
            <th scope="col"><div><a href="{getUrl('sort_index','regdate','order_type',$order_type)}" title="{$lang->antiaccess_regdate}">{$lang->antiaccess_regdate}</a></div></th>
            <th scope="col" colspan="2"><div>&nbsp;</div></th>
        </tr>
    </thead>
    <tbody>
        <tr class="row{$cycle_idx}" loop="$followhost_list => $no, $oFollow_list">
            <td>{$no}</td>
            <td><a href="{$oFollow_list->host}" title="{$oFollow_list->host}" target="_blank">{$oFollow_list->host}</a></td>
            <td>{$lang->antiaccess_followhost_state_code[$oFollow_list->state]} <a href="#$antiaccess.synchronization" id="sync_{$no}" class="button small" title="{$oFollow_list->follow_srl}" cond="$oFollow_list->state==104"><span class="sync">{$lang->antiaccess_sync}</span></a></td>
            <td>{$lang->antiaccess_followhost_level_code[$oFollow_list->my_level]}</td>
            <td>{$lang->antiaccess_followhost_level_code[$oFollow_list->follow_level]}</td>
            <td class="date w100">{zdate($oFollow_list->last_update, 'Y-m-d H:i:s', true)}</td>
            <td class="date w100">{zdate($oFollow_list->regdate, 'Y-m-d H:i:s', true)}</td>
            <td><a href="{getUrl('act','dispAntiaccessAdminInsertFollowhost','follow_srl',$oFollow_list->follow_srl)}" class="buttonSet buttonSetting" title="{$lang->cmd_setup}"><span>{$lang->cmd_setup}</span></a></td>
            <td><a href="{getUrl('act','dispAntiaccessAdminDeleteFollowhost','follow_srl',$oFollow_list->follow_srl)}" class="buttonSet buttonDelete" title="{$lang->cmd_delete}"><span>{$lang->cmd_delete}</span></a></td>
        </tr>
    </tbody>
</table>

<!-- 페이지 네비게이션 -->
<div class="pagination a1">
    <a href="{getUrl('page','')}" class="prevEnd">{$lang->first_page}</a> 
    <!--@while($page_no = $page_navigation->getNextPage())-->
        <!--@if($page == $page_no)-->
            <strong>{$page_no}</strong>
        <!--@else-->
            <a href="{getUrl('page',$page_no)}">{$page_no}</a> 
        <!--@end-->
    <!--@end-->
    <a href="{getUrl('page',$page_navigation->last_page)}" class="nextEnd">{$lang->last_page}</a>
</div>

<!-- 검색 -->
<div class="tCenter">
    <form action="./" method="get" class="adminSearch">
    <input type="hidden" name="module" value="{$module}" />
    <input type="hidden" name="act" value="{$act}" />
        <fieldset>
            <input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText" />
            <span class="button blue"><input type="submit" value="{$lang->cmd_search}" /></span>
            <a href="{getUrl('','module',$module,'act',$act)}" class="button black"><span>{$lang->cmd_cancel}</span></a>
        </fieldset>
    </form>
</div>

<div class="clear">
    <div class="fr">
        <a href="{getUrl('','module','admin','act','dispAntiaccessAdminInsertFollowhost')}" class="button black strong"><span>{$lang->cmd_make}</span></a>
    </div>
</div>